package cn.zyq.ykb.mapper.user;

import cn.zyq.ykb.beans.user.UserBalance;
import cn.zyq.ykb.beans.user.vo.UserWalletDetailVo;
import cn.zyq.ykb.system.common.PageParam;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import cn.zyq.ykb.system.config.common.BaseMapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 用户-余额变更Mapper接口
 *
 * @author SystemAuth
 * @date 2023-05-19
 */
@Component
@Mapper
public interface UserBalanceMapper extends BaseMapper<UserBalance> {
    List<UserBalance> list(Map<String, Object> param);

    List<UserBalance> txList(Map<String, Object> param);

    List<UserBalance> txListAll(Map<String, Object> param);

    List<UserBalance> txListAllGL(Map<String, Object> param);

    Integer txListNum(Integer userID);

    BigDecimal getMoney(Integer userID);

    BigDecimal getYXMoney(Integer userID);

    BigDecimal getRWMoney(Integer userID);

    BigDecimal getKCMoney(Integer userID);


    List<UserWalletDetailVo> getKC(Map<String, Object> param);
}
